﻿using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using MUD.Network;

namespace MUD.Lib.Objects.Users
{
    internal class UserCollection : Collection<User>
    {
        public UserCollection() :base() { }

        public User this[AsyncClient client]
        {
            get
            {
                foreach (User user in this)
                {
                    if (user.Client == client)
                        return user;
                }
                return null;
            }
        }
    }
}
